package com.tdk.wifidirectserver

import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import com.tdk.wifidirectserver.databinding.ActivityEnterBinding

class EnterActivity : AppCompatActivity() {
    lateinit var binding: ActivityEnterBinding
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        binding = ActivityEnterBinding.inflate(layoutInflater)
        setContentView(binding.root)
        initView()
    }

    private fun initView() {
        binding.btnWifiP2p.setOnClickListener {
            startActivity(Intent(this, MainActivity::class.java))
        }

        binding.btnWifiAp.setOnClickListener {
            startActivity(Intent(this, APConnectActivity::class.java))
        }
    }
}